//
//  AXFActivitiesCollectionViewCell.m
//  AXFEightGroup
//
//  Created by ooops on 12/28/16.
//  Copyright © 2016 ya. All rights reserved.
//

#import "AXFActivitiesCollectionViewCell.h"
#import "AXFDataModel.h"

@implementation AXFActivitiesCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if(self = [super initWithFrame:frame]) {
        _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
        _imageView.image = FULLSIZEPLACEHOLDER;
        [self addSubview:_imageView];
    }
    return self;
}

-(void)setModel:(AXFDataModel *)model {
    _model = model;
    NSURL *url = [NSURL URLWithString:model.imgURL];
    [self.imageView sd_setImageWithURL:url placeholderImage:FULLSIZEPLACEHOLDER];
}

@end
